package com.flow.service.impl;

import java.util.List;

import com.flow.dao.IAccountTypeDao;
import com.flow.service.IAccountTypeService;

public class AccountTypeService <T> implements IAccountTypeService<T> {

	private IAccountTypeDao<T> atDao;
	
	@Override
	public List<T> findAllAccountType() {

		try {
			
			String hql = "from NumberHead ";
			return atDao.findAccountTypeAllByHql(hql);
			
		} catch (Exception e) {

			e.printStackTrace();
		
		}
		
		return null;
	}

	public void setAtDao(IAccountTypeDao<T> atDao) {
		this.atDao = atDao;
	}
	
}
